home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / qw12inst.zip / PROTMAN.TEC < prev    next >
Text File  |  1991-12-26  |  5KB  |  115 lines

  1. ID:PR Using Optimize with PROTMAN.DOS
  2. Quarterdeck Technical Note #227
  3. by the Quarterdeck Compatibility Dept.
  4.  
  5. PROTMAN.DOS is the protocol manager for Microsoft's MS-DOS LAN 
  6. Manager.  It is also used in 3COM's 3Open network configuration, 
  7. and in many other network software configurations.  PROTMAN is a 
  8. device driver that is loaded from the CONFIG.SYS file, and is 
  9. usually the first piece of network software loaded.
  10.  
  11. Many existing versions of PROTMAN.DOS seem to need only 100 bytes 
  12. or so of memory for themselves.  In fact, they put a chunk of 
  13. additional code in available memory, 32K from the top of whatever 
  14. region of memory they are loaded into.  This code, which is used 
  15. by other network programs that make calls to PROTMAN, is 
  16. completely exposed to any other program that allocates memory 
  17. from DOS.  The PROTMAN programmers, realizing that this exposed 
  18. code would only be exercised by other network drivers and TSR's, 
  19. no doubt assumed that it would not be overwritten until after it 
  20. was no longer needed.  This assumption is not necessarily valid 
  21. when programs are being loaded between 640K and 1024K.  
  22.  
  23. Among the possible consequences of PROTMAN's unusual behavior: 
  24.  
  25. 1) Any program loading high into a region with PROTMAN is likely 
  26. to bomb the code that PROTMAN places in available memory, thus 
  27. causing subsequent network programs to fail.
  28.  
  29. 2) PROTMAN writes some of itself 32K from the top of its memory 
  30. region, regardless of the size of the region.  If you load PROTMAN 
  31. in a 32K region between 640K and 1024K, it will write right over 
  32. itself, and the system will hang as PROTMAN loads in the 
  33. CONFIG.SYS routine.  If you load PROTMAN in a 16K region, it will 
  34. write over something beneath it in memory, with unpredictable 
  35. results. 
  36.  
  37. 3) LOADHI's /GETSIZE (/GS) parameter writes its signature 
  38. throughout available memory as a method of determining how much 
  39. memory a driver or TSR uses when loading.  When used after 
  40. PROTMAN, LOADHI /GS will overwrite PROTMAN's exposed code, which 
  41. is in memory that DOS reports as unused.  In such a case, network 
  42. programs that load after PROTMAN and make calls to it usually hang 
  43. the system, giving an Exception #13 error on systems using QEMM-
  44. 386. 
  45.  
  46. 4) Optimize, which relies on LOADHI /GS, will likely fail in the 
  47. Detection Phase when PROTMAN is loaded.  The system will usually 
  48. hang, not when PROTMAN loads, but when one of the subsequent 
  49. network drivers or TSR's loads.
  50.  
  51. ------------------------------
  52. Versions of PROTMAN.DOS after 2.0C (CSD rev. 8) no longer place 
  53. code in available memory.  For those users with earlier versions 
  54. of PROTMAN, we have tested a method which lets users run Optimize 
  55. on PROTMAN systems without getting Exception #13's during the 
  56. Detection Phase.  This method should leave your system configured 
  57. in such a way that all four of the above dangers are avoided. 
  58.  
  59. 1) Place the RAM parameter on QEMM-386 or QEMM-50/60, or install 
  60. QRAM in the CONFIG.SYS file.  Reboot, and make sure that the 
  61. biggest High RAM region (as reported on Manifest's First 
  62. Meg/Overview screen) is at least 33K in size.  
  63.  
  64. If the largest High RAM region isn't at least 33K big, you cannot 
  65. run Optimize with PROTMAN, and you should not proceed to step 2.  
  66. Instead, you should manually place LOADHI.SYS and LOADHI.COM on 
  67. every line in the CONFIG.SYS and AUTOEXEC.BAT file that contains a 
  68. program that you want to load high.  (See the LOADHI chapter in 
  69. your QEMM or QRAM manual for more details.)  Do not, however, 
  70. place LOADHI on the PROTMAN line.  Then, reboot without running 
  71. Optimize.  This configuration should let you successfully load 
  72. most of your programs high. 
  73.  
  74. 2) If you have any programs that allocate Upper Memory Blocks 
  75. (UMB's) through the Extended Memory Specification, you may wish to 
  76. stop them from doing so (by using the programs' own parameters) 
  77. before proceding further.  Such programs can interfere with 
  78. Optimize's calculations under any circumstances; with the 
  79. procedure that we are about to use, a program that allocates a UMB 
  80. may cause network drivers or TSR's to fail.
  81.  
  82. 3) If your biggest High RAM region is 33K or larger, start 
  83. Optimize.  Let Optimize modify your CONFIG.SYS and AUTOEXEC.BAT 
  84. files in preparation for the Detection Phase.  When you see the 
  85. Optimize screen titled "DETECTION PHASE," hit Esc, then F1, to 
  86. break out of Optimize.
  87.  
  88. 4) Use an editor to edit the PROTMAN line in the CONFIG.SYS file.  
  89. Remove all the parameters to LOADHI.SYS on that line.  (There 
  90. should be two: a /GS parameter that directs the /GETSIZE data to 
  91. LOADHI.OPT, and a LABEL parameter.)  Leave LOADHI.SYS and all 
  92. PROTMAN's parameters on the line.  And let all the other lines 
  93. alone.
  94.  
  95. For example, if the PROTMAN line in the CONFIG.SYS says: 
  96.  
  97. DEVICE=C:\QEMM\LOADHI.SYS /GS:C:\QEMM\LOADHI.OPT /LABEL:AB 
  98. ...C:\LANMAN\PROTMAN.DOS /I:C:\LANMAN\PROTOCOL.INI
  99.  
  100. ...then change the line to: 
  101.  
  102. DEVICE=C:\QEMM\LOADHI.SYS C:\LANMAN\PROTMAN.DOS 
  103. .../I:C:\LANMAN\PROTOCOL.INI
  104.  
  105. 5) Reboot and let Optimize complete normally.
  106.  
  107. -------------------------------
  108.  
  109. When you're all done, PROTMAN will be loaded low, but it only uses 
  110. 100 bytes or so.  All other programs will be Optimized.
  111.  
  112.       Copyright (C) 1991 by Quarterdeck Office Systems 
  113.                * * * E N D  O F  F I L E * * *
  114.  
  115.